package com.ruoyi.eduadmin.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.eduadmin.mapper.ItFocusMapper;
import com.ruoyi.eduadmin.domain.ItFocus;
import com.ruoyi.eduadmin.service.IItFocusService;

/**
 * 重点关注Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-28
 */
@Service
public class ItFocusServiceImpl implements IItFocusService 
{
    @Autowired
    private ItFocusMapper itFocusMapper;

    /**
     * 查询重点关注
     * 
     * @param id 重点关注主键
     * @return 重点关注
     */
    @Override
    public ItFocus selectItFocusById(Long id)
    {
        return itFocusMapper.selectItFocusById(id);
    }

    /**
     * 查询重点关注列表
     * 
     * @param itFocus 重点关注
     * @return 重点关注
     */
    @Override
    public List<ItFocus> selectItFocusList(ItFocus itFocus)
    {
        return itFocusMapper.selectItFocusList(itFocus);
    }

    /**
     * 新增重点关注
     * 
     * @param itFocus 重点关注
     * @return 结果
     */
    @Override
    public int insertItFocus(ItFocus itFocus)
    {
        return itFocusMapper.insertItFocus(itFocus);
    }

    /**
     * 修改重点关注
     * 
     * @param itFocus 重点关注
     * @return 结果
     */
    @Override
    public int updateItFocus(ItFocus itFocus)
    {
        return itFocusMapper.updateItFocus(itFocus);
    }

    /**
     * 批量删除重点关注
     * 
     * @param ids 需要删除的重点关注主键
     * @return 结果
     */
    @Override
    public int deleteItFocusByIds(Long[] ids)
    {

        return itFocusMapper.deleteItFocusByIds(ids);
    }

    /**
     * 删除重点关注信息
     * 
     * @param id 重点关注主键
     * @return 结果
     */
    @Override
    public int deleteItFocusById(Long id)
    {
        return itFocusMapper.deleteItFocusById(id);
    }

    @Override
    public ItFocus selectItFocusByStudentId(Long id) {
        return itFocusMapper.selectItFocusByStudentId(id);
    }
}
